﻿<Page x:Class="WpfTransform.PageTranslateform"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d"    d:DesignHeight="300" d:DesignWidth="700"
	Title="PageTranslateform">
    <Canvas>
        <TextBlock Text="Normal" TextAlignment="Center" FontSize="32"  Canvas.Left="100" Canvas.Top="50" Background="LightBlue" Width="300" Height="100"/>
        <TextBlock Text="TranslateTransform" TextWrapping="Wrap" TextAlignment="Center" FontSize="32"  Canvas.Left="100" Canvas.Top="50" 
                   Background="#7700ff00" Width="300" Height="100" >
            <TextBlock.RenderTransform>
                <TranslateTransform  X="100" Y="50"  />
            </TextBlock.RenderTransform>
        </TextBlock>

        <!-- Offset the text using a TranslateTransform. -->
        <TextBlock
       FontFamily="Verdana"
       FontSize="32"
       FontWeight="Bold" 
       Foreground="Black"
       Text="Translated Text" Canvas.Left="20" Canvas.Top="7">
          <TextBlock.RenderTransform>
              <TranslateTransform X="2" Y="2" />
          </TextBlock.RenderTransform>
        </TextBlock>

        <TextBlock
       FontFamily="Verdana"
       FontSize="32"
       FontWeight="Bold" 
       Foreground="Coral"
       Text="Translated Text" Canvas.Left="24" Canvas.Top="12" />

    </Canvas>
</Page>
